// 自定义 Promise 构造函数
function Promise(executor) {

}


/** 2.
 *	executor
 *	形参接收
 *	(resolve, reject) => { resolve('ok') } => executor
*/


// 向原型上添加 then 方法
Promise.prototype.then = function(onResult, onRejected) {

}

/** 4.
 *	onResolved 
 *	形参接收
 *	onResult => (value) => { console.log(value) }
 *
 *	onRejected
 *	形参接收
 *	onRejected => (reason) => { console.warn(reason) }
*/